from mpi4py import MPI
import h5py
import time

comm = MPI.COMM_WORLD
rank = comm.rank
f = h5py.File('seed.hdf5', 'r', driver='mpio', comm=comm)

print(f"rank: {rank}, id: {id(f)}")

comm.Barrier()
f.close()
